package org.appfuse.model;

import java.sql.Date;

/**
 * @struts.form include-all="true" extends="org.appfuse.webapp.form.BaseForm"
 * @hibernate.class table="khkcxx"
 */
public class Khkcxx extends org.appfuse.model.BaseObject implements
		java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 9199714181290883239L;

	private Integer id;

	private BasicInfo basicInfo;

	private Date khrq;

	private String khlb;

	private String kcjl;

	protected String kcrxm;

	protected String kczzmc;

	private String a00;

	// Constructors

	public String getA00() {
		return a00;
	}

	public void setA00(String a00) {
		this.a00 = a00;
	}

	/** default constructor */
	public Khkcxx() {
	}

	

	// Property accessors

	public Khkcxx(Integer id, BasicInfo basicInfo, Date khrq, String khlb, String kcjl, String kcrxm, String kczzmc, String a00) {
		super();
		this.id = id;
		this.basicInfo = basicInfo;
		this.khrq = khrq;
		this.khlb = khlb;
		this.kcjl = kcjl;
		this.kcrxm = kcrxm;
		this.kczzmc = kczzmc;
		this.a00 = a00;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getKhrq() {
		return this.khrq;
	}

	public void setKhrq(Date khrq) {
		this.khrq = khrq;
	}

	public String getKhlb() {
		return this.khlb;
	}

	public void setKhlb(String khlb) {
		this.khlb = khlb;
	}

	public String getKcjl() {
		return this.kcjl;
	}

	public void setKcjl(String kcjl) {
		this.kcjl = kcjl;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (getClass() != obj.getClass())
			return false;
		final Khkcxx other = (Khkcxx) obj;
		if (a00 == null) {
			if (other.a00 != null)
				return false;
		} else if (!a00.equals(other.a00))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 0;
		result = PRIME * result + ((a00 == null) ? 0 : a00.hashCode());
		result = PRIME * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

	public BasicInfo getBasicInfo() {
		return basicInfo;
	}

	public void setBasicInfo(BasicInfo basicInfo) {
		this.basicInfo = basicInfo;
		this.a00 = basicInfo.getId();
	}

	public String getKcrxm() {
		return kcrxm;
	}

	public void setKcrxm(String kcrxm) {
		this.kcrxm = kcrxm;
	}

	public String getKczzmc() {
		return kczzmc;
	}

	public void setKczzmc(String kczzmc) {
		this.kczzmc = kczzmc;
	}

}